import request from '@/utils/request'

// 查询综测目录列表
export function listDirectory(query) {
  return request({
    url: '/complex/directory/list',
    method: 'get',
    params: query
  })
}

// 查询综测目录详细
export function getDirectory(directoryId) {
  return request({
    url: '/complex/directory/' + directoryId,
    method: 'get'
  })
}

// 新增综测目录
export function addDirectory(data) {
  return request({
    url: '/complex/directory',
    method: 'post',
    data: data
  })
}

// 修改综测目录
export function updateDirectory(data) {
  return request({
    url: '/complex/directory',
    method: 'put',
    data: data
  })
}

// 删除综测目录
export function delDirectory(directoryId) {
  return request({
    url: '/complex/directory/' + directoryId,
    method: 'delete'
  })
}
